/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.crystalrange.enterprise.model;

import java.io.Serializable;

/**
 *
 * @author tbekasiewicz
 */
public class SalesOrderItem implements Serializable {

    private static final long serialVersionUID = 1L;

    private SalesOrder salesOrder;
    private Material material;
    private Double quantity;
    private Double price;

    public SalesOrderItem() {
    }

    public SalesOrder getSalesOrder() {
        return this.salesOrder;
    }

    public void setSalesOrder(SalesOrder salesOrder) {
        this.salesOrder = salesOrder;
    }

    public Material getMaterial() {
        return this.material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    public Double getQuantity() {
        return this.quantity;
    }

    public void setQuantity(Double quantity) {
        this.quantity = quantity;
    }

    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
    
    public Double getNetAmount() {
        return this.quantity * this.price;
    }
}
